package cn.myfirefly.moming.portal.dao;

import org.hibernate.Query;
import org.hibernate.Session;
import org.springframework.stereotype.Repository;

import cn.myfirefly.moming.portal.entity.MMRoleAction;
import cn.myfirefly.core.BaseDao;

@Repository
public class RoleActionDao extends BaseDao<MMRoleAction>{
	
	public void del(Integer roleSn, Integer funSn) {
		Session session = getCurrentSession();
		Query query = session.createQuery(" delete from MMRoleAction  where roleSn = ? and funSn = ? " );
		query.setInteger(0, roleSn);
		query.setInteger(1, funSn);
		query.executeUpdate();
	}
	
}
